.class public Lcom/uucun/adsdk/a/b;
.super Ljava/lang/Object;


# static fields
.field private static final a:Ljava/lang/String;

.field private static b:Lcom/uucun/adsdk/a/b;


# instance fields
.field private c:I

.field private d:Ljava/util/concurrent/ConcurrentLinkedQueue;

.field private e:Ljava/util/concurrent/ConcurrentLinkedQueue;

.field private f:Ljava/util/concurrent/ConcurrentLinkedQueue;

.field private g:Ljava/util/HashMap;

.field private h:Ljava/util/concurrent/ConcurrentLinkedQueue;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-class v0, Lcom/uucun/adsdk/a/b;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/uucun/adsdk/a/b;->a:Ljava/lang/String;

    const/4 v0, 0x0

    sput-object v0, Lcom/uucun/adsdk/a/b;->b:Lcom/uucun/adsdk/a/b;

    return-void
.end method

.method private constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x5

    iput v0, p0, Lcom/uucun/adsdk/a/b;->c:I

    iput-object v1, p0, Lcom/uucun/adsdk/a/b;->g:Ljava/util/HashMap;

    iput-object v1, p0, Lcom/uucun/adsdk/a/b;->h:Ljava/util/concurrent/ConcurrentLinkedQueue;

    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/b;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/b;->e:Ljava/util/concurrent/ConcurrentLinkedQueue;

    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/b;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/b;->g:Ljava/util/HashMap;

    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/b;->h:Ljava/util/concurrent/ConcurrentLinkedQueue;

    return-void
.end method

.method public static a()Lcom/uucun/adsdk/a/b;
    .locals 1

    sget-object v0, Lcom/uucun/adsdk/a/b;->b:Lcom/uucun/adsdk/a/b;

    if-nez v0, :cond_0

    new-instance v0, Lcom/uucun/adsdk/a/b;

    invoke-direct {v0}, Lcom/uucun/adsdk/a/b;-><init>()V

    sput-object v0, Lcom/uucun/adsdk/a/b;->b:Lcom/uucun/adsdk/a/b;

    :cond_0
    sget-object v0, Lcom/uucun/adsdk/a/b;->b:Lcom/uucun/adsdk/a/b;

    return-object v0
.end method

.method private c()V
    .locals 2

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->e:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->size()I

    move-result v0

    iget v1, p0, Lcom/uucun/adsdk/a/b;->c:I

    if-lt v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/uucun/adsdk/c/l;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/uucun/adsdk/a/b;->e:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Lcom/uucun/adsdk/c/l;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0
.end method


# virtual methods
.method public a(Landroid/content/BroadcastReceiver;)V
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->h:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public a(Lcom/uucun/adsdk/c/l;)V
    .locals 2

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;

    iget-object v1, p1, Lcom/uucun/adsdk/c/l;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    invoke-virtual {p1}, Lcom/uucun/adsdk/c/l;->b()V

    invoke-direct {p0}, Lcom/uucun/adsdk/a/b;->c()V

    return-void
.end method

.method public a(Lcom/uucun/adsdk/c/l;Z)V
    .locals 2

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->e:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;

    iget-object v1, p1, Lcom/uucun/adsdk/c/l;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z

    iget-object v0, p1, Lcom/uucun/adsdk/c/l;->b:Ljava/lang/String;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    if-eqz p2, :cond_1

    iget-object v0, p1, Lcom/uucun/adsdk/c/l;->b:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/uucun/adsdk/a/b;->b(Ljava/lang/String;)V

    :cond_1
    invoke-direct {p0}, Lcom/uucun/adsdk/a/b;->c()V

    goto :goto_0
.end method

.method public a(Ljava/lang/String;)Z
    .locals 1

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->contains(Ljava/lang/Object;)Z

    move-result v0

    goto :goto_0
.end method

.method public b()V
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->h:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->e:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->g:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V

    return-void
.end method

.method public b(Landroid/content/BroadcastReceiver;)V
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->h:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->g:Ljava/util/HashMap;

    invoke-virtual {v0, p1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->g:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public d(Ljava/lang/String;)Z
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/a/b;->g:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method
